<template>
  <div class="login-wrapper">
    <div class="container">
      <div class="left">
        <h1 class="title">企业“销售+管理”全流程</h1>
        <h2 class="mini-title">客户关系管理的前沿创新</h2>
        <div class="desc">
          网凝CRM已涉及教育业、制造业、服务业、金融业、政府机构等10多种<br />
          行业解决方案，全面帮助企业进行信息化建设
        </div>
        <!-- <img src="~@/assets/login/logo.png" class="logo"> -->
      </div>
      <div class="right">
        <div class="login-main-content">
          <div class="logo-title">您好！</div>
          <div class="logo-box">{{ titleMap[activeCom] }}</div>
          <component :is="activeCom" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import LoginByPwd from './component/LoginByPwd'

export default {
  name: 'Login',
  components: {
    LoginByPwd,
  },
  data() {
    return {
      activeCom: 'LoginByPwd',
      titleMap: {
        LoginByPwd: '欢迎登录CRM后台管理系统'
      }
    }
  },
  watch: {},
  created() {},
  methods: {},
}
</script>

<style scoped lang="scss">
@import "index";
.login-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: url("~@/assets/login/bg.gif") center no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  .container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    margin:0 auto;
    background: url("~@/assets/login/center-bg-2.png") center center no-repeat;
    .left {
      width: 596px;
      overflow: hidden;
      margin-top: 60px;
      .title {
        font-size: 42px;
        font-weight: 500;
        color: white;
        letter-spacing: 3px;
        margin: 0 0 0 60px;
      }
      .mini-title {
        font-size: 32px;
        font-weight: 500;
        color: white;
        letter-spacing: 3px;
        margin: 10px 0 0 60px;
      }
      .desc {
        font-size: 15px;
        font-weight: 400;
        color: white;
        line-height: 1.5;
        margin: 47px 0 350px 60px;
      }
      // .logo {
      //   width: 154px;
      //   height:40px;
      //   margin: 300px 0 0px 60px;
      // }
    }
    .right {
      width: 596px;
      padding-left: 8%;
      padding-top: 10px;
      .login-main-content {
        width: 84%;
        height: 500px;
        overflow: hidden;
        .logo-title{
          font-size: 36px;
          font-weight: 400;
          padding: 0 40px;
          margin: 15px 0 0px;
        }
        .logo-box {
          width: 100%;
          font-size: 20px;
          color: rgba(201, 205, 212, 1);
          letter-spacing: 2px;
          padding: 0 40px;
          margin: 5px 0 20px;
        }
      }
      // @media screen and (max-width: 1550px) {
      // width: 480px;
      // margin-left: 80px;
      // padding-top: 10px;
      // .login-main-content {
      // height: 450px;
      // .logo-box {
      // font-size: 20px;
      // padding: 0 40px;
      // margin: 15px 0 20px;
      // &:before {
      //   height: 16px;
      //   left: 24px;
      // }
      // }
      // }
      // }
    }
  }
}
</style>
